package com.jw.blog.wblog.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jw.blog.wblog.entity.Visit;
import com.jw.blog.wblog.entity.custom.TimeAndCount;
import com.jw.blog.wblog.mapper.VisitMapper;
import com.jw.blog.wblog.service.IVisitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 无良芳
 * @since 2020-06-17
 */
@Service
public class VisitServiceImpl extends ServiceImpl<VisitMapper, Visit> implements IVisitService {
    @Resource
    private VisitMapper visitMapper;

    @Override
    public List<TimeAndCount> selectVisitListByDate(Map<String, Object> map) {
        return visitMapper.selectVisitListByDate(map);
    }

    @Override
    public List<?> selectLikeVisitListGroupByIp(Map<String, Object> map) {
        return visitMapper.selectLikeVisitListGroupByIp(map);
    }
}
